<template>
  <div class="hello">
    <h1>{{ msg }}
      <h2>this</h2>
      <Button @click="onClick2">ovo</Button>
    </h1>
    <h2 class="fz-40 w-100">Essential Links</h2>
    <div class="hello-tip" >
      ouo
    </div>
    <div style="margin:30px 950px">
      <Button @click="onClick" type="error">ovo</Button>
    </div>
    
    <Button type="info">info</Button>
    <Button type="success">success</Button>
    <Button type="warning">warning</Button>
    <Button type="error">error</Button>
    <Button type="primary" shape="circle" icon="ios-search"></Button>
    <Button type="primary" icon="ios-search">Search</Button>
    <Input v-model="value" placeholder="Enter something..." style="width: 300px" />
    <Col span="12">
        <DatePicker type="date" placeholder="Select date" style="width: 200px" @on-change="onChange"></DatePicker>
    </Col>

    <router-link to="/login">go to login</router-link>
  </div>
</template>

<script>
//import Button from './Button.vue'
export default {
  name: "HelloWorld",
  components:{
    // Button
  },
  data() {
    return {
      msg: "Welcome to Your Vue.js App",
      value: ''
    }
  },
  methods: {
    onClick (e) {
      console.log('ooooooooooooooh', this.value)
      //this.$router.push('login')
      this.$router.push({ path: '/login', query: { id: '777' }})
    },
    onClick2 (e) {
      console.log('***********')
    },
    onChange (date) {
      console.log(date)
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
$width: 400px;
$height: 200px;

@mixin rounded-corners($radius){
  -moz-border-radius: $radius;
  -webkit-border-radius:$radius;
  border-radius: $radius;
}
.hello {
  h1 {
    color: red;
    h2 {
      color: pink;
    }
  }
  h2 {
    color: green;
  }
  &-tip {
    color: darkorange;
    font: {
      size: 60px;
    }
    width: $width;
    height: $height;
    background: khaki;
    @include rounded-corners(50px);
    @if $width >200px{
      color: lightcoral;
    }
  }

}
</style>
